package website.haicheng.cloudauth.service;

import com.baomidou.mybatisplus.extension.service.IService;
import website.haicheng.cloudauth.dto.MenuDto;
import website.haicheng.cloudauth.entity.Menu;
import website.haicheng.cloudauth.vo.MenuVo;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author 582895699@qq.com
 * @since 2021-02-10
 */
public interface IMenuService extends IService<Menu> {
    Set<String> listPermission(int userId);

    void addMenu(MenuDto dto, String createBy);

    void updateMenu(MenuDto dto, String modifyBy);

    void delMenu(long id, String modifyBy);

    List<MenuVo> listMenus();
}
